package com.nd.mobile.study.view;

import org.w3c.dom.Text;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.nd.mobile.study.R;
import com.nd.mobile.study.common.BaseActivity;
import com.nd.mobile.study.common.constants.BundleConstants;
import com.nd.mobile.study.domain.HomeworkQCatalog;
import com.nd.mobile.study.domain.Subject;

public class FinishedActivity extends BaseActivity {
	
	
	private String content;
	
	private Button mBtnBack;
	
	private TextView mTvContent;

	@Override
	protected void onBaseCreate(Bundle savedInstanceState) {
		this.setContentView(R.layout.finish);  
	}

	@Override
	protected void onAfterCreate(Bundle savedInstanceStat) {
		content = getIntent().getStringExtra(BundleConstants.FINISH_INFO);
		mTvContent.setText(content);
	}

	@Override
	protected void initViews() {
		super.initHeader();
		mTvContent = (TextView) findViewById(R.id.finish_content);
		mBtnBack = (Button) findViewById(R.id.finish_back);
		mBtnBack.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				back();
			}
		});
		mHeaderBtnBack.setVisibility(View.VISIBLE);
		mHeaderBtnBack.setOnClickListener(new View.OnClickListener() {
		
			@Override
			public void onClick(View v) {
				back();
			}
		});
	}
	private void back(){
		//返回
		this.finish();
	}
}
